package com.dt.dubai.sys.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 系统菜单操作权限表
 */

@Data
@Table(name = "dt_sys_menu_operator")
@EqualsAndHashCode(callSuper = false)
public class SysMenuOperatorEntity extends BaseEntity {

    //菜单记录ID
    @NotNull(message = "menuRecordId参数不能为空")
    Long menuRecordId;

    //权限英文名称
    @NotNull(message = "operatorNameEn参数不能为空")
    @Length(min = 0, max = 30, message = "operatorNameEn参数最大长度不30")
    String operatorNameEn;

    //权限中文名称
    @NotNull(message = "operatorNameZh参数不能为空")
    @Length(min = 0, max = 30, message = "operatorNameZh参数最大长度不30")
    String operatorNameZh;

    //权限图标地址
    @Length(min = 0, max = 36, message = "operatorIconAdds参数最大长度不36")
    String operatorIconAdds;

    //状态 0-禁用,1-启用
    Short operatorStatus;

    //后端操作地址
    @NotNull(message = "ajaxUrl参数不能为空")
    @Length(min = 0, max = 160, message = "ajaxUrl参数最大长度不160")
    String ajaxUrl;

    //按钮类型 1-操作按钮,2-路由按钮,3-事件点击
    Short operationType;


}
